Optimal. Leaf size=91 \[ \frac{i \text{PolyLog}\left (2,e^{2 i (a+b x)}\right )}{2 b^2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \log \left (1-e^{2 i (a+b x)}\right )}{b}-\frac{x \cot ^2(a+b x)}{2 b}-\frac{x}{2 b}+\frac{i x^2}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.106975, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.7, Rules used = {3720, 3473, 8, 3717, 2190, 2279, 2391} \[ \frac{i \text{PolyLog}\left (2,e^{2 i (a+b x)}\right )}{2 b^2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \log \left (1-e^{2 i (a+b x)}\right )}{b}-\frac{x \cot ^2(a+b x)}{2 b}-\frac{x}{2 b}+\frac{i x^2}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3720
Rule 3473
Rule 8
Rule 3717
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int x \cot ^3(a+b x) \, dx &=-\frac{x \cot ^2(a+b x)}{2 b}+\frac{\int \cot ^2(a+b x) \, dx}{2 b}-\int x \cot (a+b x) \, dx\\ &=\frac{i x^2}{2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \cot ^2(a+b x)}{2 b}+2 i \int \frac{e^{2 i (a+b x)} x}{1-e^{2 i (a+b x)}} \, dx-\frac{\int 1 \, dx}{2 b}\\ &=-\frac{x}{2 b}+\frac{i x^2}{2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \cot ^2(a+b x)}{2 b}-\frac{x \log \left (1-e^{2 i (a+b x)}\right )}{b}+\frac{\int \log \left (1-e^{2 i (a+b x)}\right ) \, dx}{b}\\ &=-\frac{x}{2 b}+\frac{i x^2}{2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \cot ^2(a+b x)}{2 b}-\frac{x \log \left (1-e^{2 i (a+b x)}\right )}{b}-\frac{i \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{2 i (a+b x)}\right )}{2 b^2}\\ &=-\frac{x}{2 b}+\frac{i x^2}{2}-\frac{\cot (a+b x)}{2 b^2}-\frac{x \cot ^2(a+b x)}{2 b}-\frac{x \log \left (1-e^{2 i (a+b x)}\right )}{b}+\frac{i \text{Li}_2\left (e^{2 i (a+b x)}\right )}{2 b^2}\\ \end{align*}
Mathematica [A] time = 4.08289, size = 179, normalized size = 1.97 \[ \frac{i \text{PolyLog}\left (2,e^{2 i \left (\tan ^{-1}(\tan (a))+b x\right )}\right )-b^2 x^2 \cot (a)+b^2 x^2 e^{i \tan ^{-1}(\tan (a))} \cot (a) \sqrt{\sec ^2(a)}-b x \csc ^2(a+b x)-2 b x \log \left (1-e^{2 i \left (\tan ^{-1}(\tan (a))+b x\right )}\right )+\csc (a) \sin (b x) \csc (a+b x)+2 \tan ^{-1}(\tan (a)) \left (-\log \left (1-e^{2 i \left (\tan ^{-1}(\tan (a))+b x\right )}\right )+\log \left (\sin \left (\tan ^{-1}(\tan (a))+b x\right )\right )+i b x\right )-i \pi b x-\pi \log \left (1+e^{-2 i b x}\right )+\pi \log (\cos (b x))}{2 b^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.145, size = 197, normalized size = 2.2 \begin{align*}{\frac{i}{2}}{x}^{2}+{\frac{2\,bx{{\rm e}^{2\,i \left ( bx+a \right ) }}-i{{\rm e}^{2\,i \left ( bx+a \right ) }}+i}{{b}^{2} \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-1 \right ) ^{2}}}+{\frac{2\,iax}{b}}+{\frac{i{a}^{2}}{{b}^{2}}}-{\frac{\ln \left ({{\rm e}^{i \left ( bx+a \right ) }}+1 \right ) x}{b}}+{\frac{i{\it polylog} \left ( 2,-{{\rm e}^{i \left ( bx+a \right ) }} \right ) }{{b}^{2}}}-{\frac{\ln \left ( 1-{{\rm e}^{i \left ( bx+a \right ) }} \right ) x}{b}}-{\frac{\ln \left ( 1-{{\rm e}^{i \left ( bx+a \right ) }} \right ) a}{{b}^{2}}}+{\frac{i{\it polylog} \left ( 2,{{\rm e}^{i \left ( bx+a \right ) }} \right ) }{{b}^{2}}}+{\frac{a\ln \left ({{\rm e}^{i \left ( bx+a \right ) }}-1 \right ) }{{b}^{2}}}-2\,{\frac{a\ln \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.53682, size = 798, normalized size = 8.77 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.77028, size = 761, normalized size = 8.36 \begin{align*} \frac{4 \, b x +{\left (i \, \cos \left (2 \, b x + 2 \, a\right ) - i\right )}{\rm Li}_2\left (\cos \left (2 \, b x + 2 \, a\right ) + i \, \sin \left (2 \, b x + 2 \, a\right )\right ) +{\left (-i \, \cos \left (2 \, b x + 2 \, a\right ) + i\right )}{\rm Li}_2\left (\cos \left (2 \, b x + 2 \, a\right ) - i \, \sin \left (2 \, b x + 2 \, a\right )\right ) + 2 \,{\left (a \cos \left (2 \, b x + 2 \, a\right ) - a\right )} \log \left (-\frac{1}{2} \, \cos \left (2 \, b x + 2 \, a\right ) + \frac{1}{2} i \, \sin \left (2 \, b x + 2 \, a\right ) + \frac{1}{2}\right ) + 2 \,{\left (a \cos \left (2 \, b x + 2 \, a\right ) - a\right )} \log \left (-\frac{1}{2} \, \cos \left (2 \, b x + 2 \, a\right ) - \frac{1}{2} i \, \sin \left (2 \, b x + 2 \, a\right ) + \frac{1}{2}\right ) + 2 \,{\left (b x -{\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) + a\right )} \log \left (-\cos \left (2 \, b x + 2 \, a\right ) + i \, \sin \left (2 \, b x + 2 \, a\right ) + 1\right ) + 2 \,{\left (b x -{\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) + a\right )} \log \left (-\cos \left (2 \, b x + 2 \, a\right ) - i \, \sin \left (2 \, b x + 2 \, a\right ) + 1\right ) + 2 \, \sin \left (2 \, b x + 2 \, a\right )}{4 \,{\left (b^{2} \cos \left (2 \, b x + 2 \, a\right ) - b^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \cot ^{3}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \cot \left (b x + a\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]